package com.codeczx.cameraalbumtest;

import android.Manifest;
import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.Button;

import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;

public class MainActivity extends AppCompatActivity {

    @BindView(R.id.camera)
    Button camera;
    @BindView(R.id.album)
    Button album;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        ButterKnife.bind(this);
    }

    @OnClick({R.id.camera, R.id.album})
    public void onViewClicked(View view) {
        switch (view.getId()) {
            case R.id.camera:
                startActivity(new Intent(MainActivity.this,CameraActivity.class));
                break;
            case R.id.album:

                break;
        }
    }
}
